package com.ao.utils;

import com.esri.arcgis.datasourcesGDB.FileGDBWorkspaceFactory;
import com.esri.arcgis.geodatabase.IWorkspace;
import com.esri.arcgis.geodatabase.IWorkspaceFactory;

public class ConnectGDB {
	public static  IWorkspace openFromFile_fGDB_Workspace(String pathToFile)throws Exception{
	      IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactory();
	      return workspaceFactory.openFromFile(pathToFile, 0);
	}
}
